Method of rendering an image and a method of animating a graphics character

ABSTRACT

The present invention relates to a method of rendering an image and a method of animating a graphics character ( 13 ) in response to rendered image information. More particularly, but not exclusively, the present invention relates to a method of rendering an image viewed by an autonomous computer generated character and a method for controlling behaviour of the character based upon the rendered image. The present invention may find particular application in autonomous computer generated character animation for video games and to produce visual effects for film or video. The invention may also find application in simulation and robot navigation applications. The invention employs one or more fuzzy processing layers ( 23, 32, 24 ).

FIELD OF INVENTION

[0001] The present invention relates to a method of rendering an image and a method of animating a graphics character in response to rendered image information. More particularly, but not exclusively, the present invention relates to a method of rendering an image viewed by an autonomous computer generated character and a method for controlling behaviour of the character based upon the rendered image. The present invention may find particular application in autonomous computer generated character animation for video games and to produce visual effects for film or video. The invention may also find application in simulation and robot navigation applications.

BACKGROUND TO THE INVENTION

[0002] Most approaches to animation of autonomous computer generated characters do not utilise a character's view of its environment. Input for a character's artificial intelligence is typically obtained by searching a scene description database for input data and performing involved calculations to obtain required input data. This data is supplied to the character's artificial intelligence engine which outputs character behaviour information.

[0003] This approach has a number of disadvantages as follows:

[0004] 1. occlusion must be ignored or else computed at a high computational cost.

[0005] 2. resolution of input data is not proportional to distance unless this feature is explicitly computed

[0006] 3. visibility due to field of view has to be explicitly computed.

[0007] 4. topological features such as holes, concavities and profile are difficult and inefficient to represent in a non vision based system.

[0008] 5. Spatial subdivision optimisation must be used to avoid n squared performance scalability

[0009] 6. To provide accurate input information is computationally expensive and limits the number of autonomous computer generated characters that can be simultaneously controlled.

[0010] Reynolds, “Flocks, Herds, and Schools: A Distributed Behavioral Model” Computer Graphics, 21(4), July 1987, pp. 25-34, teaches automated behaviour of characters in a 3-D environment where the characters have limited knowledge of their environment.

[0011] Systems whereby the limited knowledge available to the character is derived from an image from the perspective of the character are also known.

[0012] However, such known systems do not compute distortion free images for wide angles of view.

[0013] A disadvantage of such known systems is characters are unable to be realistically responsive to their entire environment represented as a spherical view from the character's position.

[0014] Furthermore, the known systems process the image analytically to identify characteristics about objects within the field of view.

[0015] A disadvantage of such systems is that this processing costs computation time.

[0016] Another disadvantage of such systems is that the data loses generality and thereby limits the flexibility of the use of the data by the engine which determines behaviour of the character.

[0017] Another disadvantage is that analytical solutions are often susceptible to unpredictable or unstable behaviour when the input data is not as expected.

SUMMARY OF THE INVENTION

[0018] It is an object of the invention to provide a method of rendering an image to control the behaviour of an autonomous computer generated character which captures the necessary environmental information without imposing unduly complex computation.

[0019] It is a further object of the invention to provide a method of animating a graphics character that produces realistic behaviour without requiring unduly complex computation.

[0020] The above objects are both to be read disjunctively with the object of at least providing the public with a useful choice.

[0021] According to a first aspect to the invention there is provided a method of generating behaviour of a graphics character within an environment including a graphics character and one or more graphics element, the method including the steps of:

[0022] generating an image of the environment from the perspective of the selected graphics character; and

[0023] processing the image using an artificial intelligence engine with one or more layers to determine an activation value for the graphics character wherein at least one of the layers is a fuzzy processing layer.

[0024] Image data is preferably obtained by one of the rendering methods described below. Image data for the view generated is preferably processed within the first layer of an artificial intelligence engine to obtain fuzzy logic values. A second layer of the artificial intelligence engine may apply fuzzy rules to the fuzzy logic values to obtain input values for a middle layer of the artificial intelligence engine. Alternatively the second layer of the artificial intelligence engine may be a neural network. These values may be processed by the middle layer of the artificial intelligence engine to obtain activation values to control character behaviour. The middle layer of the artificial intelligence engine may be a fuzzy logic network, a neural network or a binary logic network. Where the middle layer is a fuzzy logic network a defuzzifying output layer may be employed.

[0025] Sound registers may also be associated with the character. Behaviour of the character may be based upon image and/or sound information.

[0026] There is further provided a first method of rendering an image from three dimensional graphical information comprising:

[0027] rendering images for a plurality of adjacent image subspace regions, wherein the images are rendered as viewed from a common view point and different viewing orientations.

[0028] The images rendered are preferably derived from a plurality of adjacent image subspace sectors and combined to form a single image. A scanline rendering technique is preferably employed. Image subspace areas may be vertically and/or horizontally subdivided.

[0029] There is further provided a second method of rendering an image from graphical information comprising:

[0030] performing a polar transformation to determine the position(s) of one or more vertices of a graphics primitive;

[0031] projecting the graphics primitive into sub images;

[0032] clipping the graphics primitive against the sub image to form clipped primitives;

[0033] performing polar transformations of the vertices of the clipped images;

[0034] interpolating across the surface of the clipped primitive vertices to form pseudo polar sub images; and

[0035] combining the pseudo polar sub images to form an image.

[0036] The sub images are preferably in the form of a rectangular grid. The image formed is preferably rendered in Cartesian space utilising the two polar axes.

[0037] The invention will now be described by way of example with reference to the accompanying drawings in which:

[0038]FIGS. 1 and 2 illustrate a first rendering method.

[0039]FIGS. 3 and 4 illustrate a second rendering method.

[0040] FIGS. 5 to 7 illustrate the rendering of a sub image component.

[0041]FIG. 8 illustrates an image rendered to guide an autonomous computer generated character

[0042]FIG. 9 shows an example of an artificial intelligence engine utilised to control an autonomous computer generated character.

[0043]FIG. 10 shows an example of an artificial intelligence engine including a neural network as a layer.

[0044] The present invention discloses a method of determining the behaviour of an autonomous computer generated character based upon a generated image of the graphical environment around the character rendered from the viewing perspective of the character. This approach simplifies computation and enables realistic character behaviour to be achieved relatively easily.

[0045] In this specification the word “image” refers to an array of pixels in which each pixel includes at least one data bit. Typically an image includes multiple planes of pixel data (i.e. each pixel includes multiple attributes such as luminance, colour, distance from point of view, relative velocity etc.).

[0046] The first step is to render an image of the environment as viewed from the perspective of the character for which behaviour is being generated. Where a relatively narrow range of view (e.g. 90°) is utilised to determine character behaviour, standard scanline rendering approaches may be employed. Ray tracing methods could be employed, although they would suffer from a much higher computational overhead.

[0047] As the field of view of the character widens, distortions of the image rendered, especially towards the edges, start to be significant in their effect upon character behaviour. Two methods are described below which may be utilised to generate an image as viewed by the character suitable for providing input to an artificial intelligence engine for determining character behaviour.

[0048] According to a first method illustrated in FIG. 1 a 180° viewing area is divided into three sectors 1, 2 and 3. It will be appreciated that any desired viewing range up to 360° may be selected. The sectors define fields of view (in this case 60° segments) from the perspective of an autonomous computer generated character 4. In this case the environment consists of blocks 5 to 9.

[0049] According to this first method an image is generated utilising a conventional scanline rendering process for each section 1, 2 and 3. The three images rendered are merged together to produce a single image as shown in FIG. 2. The resulting bit mapped image shown in FIG. 2 is a simulated scene of the environment as viewed from the character's point of view and may be utilised as the input to an artificial intelligence engine. Each pixel may have a number of attributes.

[0050] Referring now to FIGS. 3 to 7 a second rendering method utilising a polar viewing transform will be described.

[0051] Wide angles of view are often used. The orthodox perspective transform of the scanline rendering process results in distortion for wide angles of view. The polar viewing transform of the second rendering method can help minimise distortion resulting from wide angles of view.

[0052]FIG. 3 shows a plan view of an environment consisting of blocks 5 to 9 surrounding an autonomous computer generated character 4. Dashed lines are shown extending from the point of view of character 4 to the vertices of environmental objects 5 to 9.

[0053] According to this method polar transformations of the vertices of primitives are calculated to determine their location in image space. FIG. 5 shows the cartesian co-ordinates of the vertices of block 7 as −100, 0, 100 and 100, 0, 100. Following a polar transformation as shown in FIG. 6 the vertices are shown at −45° and +45° (with z values of 141). A polar space interpolation has been effected in FIG. 6 between the vertices resulting in a square primitive. In this figure the x and y axes are polar angles and the z value is an attribute of each pixel.

[0054] To reduce wide angle distortion, graphics primitive 7 may be projected into sub images 12 a and 12 b. The number of sub images employed will depend upon the resolution required. Graphics primitive 7 is clipped against sub images 12 a and 12 b to form clipped primitives 7 a and 7 b . The intersections between the edges of sub regions 12 a and 12 b and the edges of graphics primitive 7 define new vertices (e.g. 0,0,100). Polar transformations are performed on the vertices of the clipped images and by interpolating across the surface of the primitive polar sub images are formed. The polar sub images may then be rendered into the main image using linear interpolation scanline algorithms to produce an image in pseudo polar space as shown in FIG. 7. The image rendered in FIG. 7 is seen to be much closer to a true polar image than the original shown in FIG. 6.

[0055]FIG. 4 shows a relatively finely rendered image produced using this technique. As the rendered image is simply being used to control character behaviour, relatively coarse image rendering may be acceptable in most situations.

[0056] Referring now to FIG. 8 an articulated autonomous computer generated character 13 is shown within a graphics environment. An image 14 may be generated from the character's point of view utilising a rendering method as described above or another suitable rendering method. Image 14 may be rendered to a resolution appropriate for the behaviour to be modelled. Behaviour of character 13 may be based upon rendered image 14 and/or sound information.

[0057] Referring now to FIG. 9 an example of an artificial intelligence engine is shown. An image from the perspective of an autonomous computer generated character, such as image 14; may be input to the first layer. The image is input to the first layer on a pixel-by-pixel basis. The first layer applies fuzzy membership functions to pixel values to obtain fuzzy weightings. In this example two pixel values are utilised. “Vision X” represents a pixel's horizontal co-ordinate value. “Vision Z” represents a pixel's depth value. Fuzzy weightings may be accorded to the pixel's leftness 17, centreness 18, and rightness 19. Fuzzy weighting may also be accorded to the pixel's very nearness 20, nearness 21, and farness 22. The pixels of image 14 may be processed in parallel or as a serial iterated loop to provide fuzzy values for each pixel.

[0058] A fuzzy parallel processing layer 23 is provided to apply fuzzy rules to the output values of fuzzy membership functions 17 to 22 on a pixel-by-pixel basis. The values output from each rule in parallel processing layer 23 may then be averaged, a maximum value adopted or some other function applied to obtain a single output value from parallel processing layer 23 for each rule. In this example a,fuzzy near left rule utilises the fuzzy weightings from the leftness of the pixel and the very nearness of the pixel to output a value.

[0059] Fuzzy parallel processing layer 23 may be replaced by a neural network.

[0060] The single values from each rule of layer 23 are then utilised by middle layer 32. In middle layer 32 fuzzy rules are applied to develop activation values. In this example the middle layer applies a fuzzy “near left and right then go right” rule to inputs from fuzzy rules near left and near right from layer 23.

[0061] Middle layer 32 may be replaced by a neural network, binary logic network etc. Alternatively both fuzzy parallel processing layer 23 and middle layer 32 may be replaced by a single neural network.

[0062] Values from the middle layer 32 are then defuzzified in layer 24 to provide activation values (behavioural outputs). In this example the outputs of fuzzy middle layer 32 are utilised to determine the weighting of a “stop” value 25. “Go” value 26 is the complement of “stop” value 25. The values 25 and 26 determine the “z” speed value 27.

[0063] The outputs from fuzzy middle layer 32 are also utilised to control turning. The middle layer values determine the values of “right” value 28, “no turn” value 29 and “left” value 30. These are utilised to obtain a “RY” turn value 31.

[0064] Accordingly, based upon an image rendered from the perspective of the autonomous computer generated character, activation values in the form of speed 27 and direction 31 are obtained.

[0065] Referring to FIG. 10 an example of an artificial intelligence engine wherein one of the layers is a neural network is shown. An image from the perspective of an autonomous computer generated character, such as image 14, may be input on a pixel-by-pixel basis to the artificial intelligence engine. Each pixel is split into its constituent parts 33 and provided to fuzzy processing layer 34 wherein fuzzy membership functions are applied to obtain fuzzy weightings.

[0066] A neural network comprised of an input sub-layer 35, a first hidden sub-layer 36, a second hidden sub-layer 37, and an output sub-layer 38 is shown. The fuzzy weightings output from fuzzy processing layer 34 are provided to the input sub-layer 35. In this example a neural network utilising perceptrons is shown. It will be appreciated that other forms of neural networks may be used.

[0067] The output values 39 from the neural network provide activation values 40.

[0068] The behaviour of character 13 may also be dependent upon sound information. Where a sound source is defined within the environment a calculation is first conducted to determine whether the character is within audible range. If so the amplitude of this sound at the location of the character is calculated. If there is an empty sound register the sound value is placed in that register. If there is no empty register the lowest amplitude value within an existing register is replaced if lower than the value of the propagated sound. The register may contain information as to the amplitude, frequency or other characteristics. Words could also, be stored and character behaviour may respond to audible words. Information from the sound registers may be fed into middle layer 32 to control behaviour of character 13. Sound information is thus based upon a real physical model in the same way visual information is.

[0069] It will be appreciated that the artificial intelligence engine may respond to any desired inputs, such as colour, brightness, contrast, distance from point of view, relative velocity, sound etc. It will also be appreciated that a range of behaviours may be generated, such as obstacle avoidance, navigation, interest tracking, multiple character interaction or the propagation of sound. The output of the artificial intelligence engine may also control animation blending controls. Animation blending controls may be utilised to initiate play back of animation, blend values to control the relative effect of multiple animations, control animation play back rates etc.

[0070] Although the invention has been described in relation to a 2D image rendered from a 3D environment utilised as the input it will be appreciated that one dimensional or other rendered images could be used in some applications.

[0071] The method of the invention produces surprisingly natural behaviour utilising only a few simple fuzzy rules. Realistic behaviour can be more easily achieved due to the realistic nature of the input data. The method avoids the need to explicitly compute occlusion, visibility and sensory resolution. These are all implicit within the rendering method. Better than n squared scalability for processing times of large numbers of characters in a scene are obtainable (typically close to n proportional where n is the number of characters).

[0072] The invention thus provides means to animate an autonomous computer generated character in a realistic manner without high computation requirements.

[0073] Where in the foregoing description reference has been made to integers or components having known equivalents then such equivalents are herein incorporated as if individually set forth.

[0074] Although this invention has been described by way of example it is to be appreciated that improvements and/or modifications may be made thereto without departing from the scope or spirit of the present invention. 

1. A method of generating behavior of a graphics character within an environment including a selected graphics character and one or more graphics elements, the method comprising: generating an image of the environment from a perspective of the selected graphics character; and processing the image using an artificial intelligence engine with one or more layers to determine an activation value for the graphics character wherein at least one of the layers is a fuzzy processing layer.
 2. A method as claimed in claim 1 wherein the image comprises pixels and each pixel is processed by a fuzzy processing layer according to a fuzzy membership function to obtain fuzzy logic values to be used to determine an activation value.
 3. A method as claimed in claim 2 wherein fuzzy rules are applied by a second fuzzy processing layer to the fuzzy logic values for each pixel to obtain output values.
 4. A method as claimed in claim 2 wherein a neural network utilizes the fuzzy logic values to obtain output values.
 5. A method as claimed in claim 2 wherein processing further comprises using middle layer to process input values to obtain activation values.
 6. A method as claimed in claim 5 wherein the fuzzy logic values are the input values processed by the middle layer.
 7. A method as claimed in claim 5 wherein the middle layer is a fuzzy logic network.
 8. A method as claimed in claim 5 wherein the middle layer is a neural network.
 9. A method as claimed in claim 5 wherein the middle layer is a binary logic network.
 10. A method as claimed in claim 7 wherein a defuzzifying output
 11. A method as claimed in claim 1 wherein image and sound information is processed to determine an activation value 15 for a character.
 12. A method as claimed in claim 1 wherein the image is rendered using a scanline rendering technique.
 13. A method as claimed in claim 1 wherein the image is generated by rendering images for a plurality of adjacent sub space areas, wherein the images are rendered as viewed from a common viewpoint and different orientations.
 14. Canceled
 15. A method of rendering an image from three dimensional graphical information comprising: rendering images for a plurality of adjacent image sub space regions, wherein the images are rendered as viewed from a common view point and different viewing orientations.
 16. A method as claimed in claim 15 wherein the images rendered are derived from a plurality of adjacent image sub space regions and combined to 5 form a single image.
 17. A method as claimed in claim 15 wherein a scanline rendering technique is employed.
 18. A method as claimed in claim 15 wherein the image sub space areas are vertically subdivided.
 19. A method as claimed in claim 15 wherein the image sub space areas are horizontally subdivided.
 20. A method of rendering an image from graphic information comprising: performing a polar transformation to determine at least one position of one or more vertices of a graphics primitive; projecting the graphics primitive into sub images; clipping the graphics primitive against the sub images to form clipped primitives; performing polar transformations of the vertices of the clipped images; interpolating across the surface of the clipped primitives to form pseudo polar sub images; and combining the pseudo polar sub images to form an image.
 21. A method as claimed in claim 20 wherein the sub images are in the form of a rectangular grid.
 22. A method as claimed in claim 20 wherein the image formed is rendered in image space utilising the two polar angles as axes.
 23. Canceled
 24. Canceled 